﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Magic.Core;

/// <summary>
/// 地区表
///</summary>
[SugarTable("area")]
public class Area
{
    /// <summary>
    /// ID 
    ///</summary>
    [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }
    /// <summary>
    /// 父id 
    ///</summary>
    [SugarColumn(ColumnName = "pid")]
    public int? Pid { get; set; }
    /// <summary>
    /// 简称 
    ///</summary>
    [SugarColumn(ColumnName = "shortname")]
    public string Shortname { get; set; }
    /// <summary>
    /// 名称 
    ///</summary>
    [SugarColumn(ColumnName = "name")]
    public string Name { get; set; }
    /// <summary>
    /// 全称 
    ///</summary>
    [SugarColumn(ColumnName = "mergename")]
    public string Mergename { get; set; }
    /// <summary>
    /// 层级:1=省,2=市,3=区/县 
    ///</summary>
    [SugarColumn(ColumnName = "level")]
    public byte? Level { get; set; }
    /// <summary>
    /// 拼音 
    ///</summary>
    [SugarColumn(ColumnName = "pinyin")]
    public string Pinyin { get; set; }
    /// <summary>
    /// 长途区号 
    ///</summary>
    [SugarColumn(ColumnName = "code")]
    public string Code { get; set; }
    /// <summary>
    /// 邮编 
    ///</summary>
    [SugarColumn(ColumnName = "zip")]
    public string Zip { get; set; }
    /// <summary>
    /// 首字母 
    ///</summary>
    [SugarColumn(ColumnName = "first")]
    public string First { get; set; }
    /// <summary>
    /// 经度 
    ///</summary>
    [SugarColumn(ColumnName = "lng")]
    public string Lng { get; set; }
    /// <summary>
    /// 纬度 
    ///</summary>
    [SugarColumn(ColumnName = "lat")]
    public string Lat { get; set; }
}
